Page({
  data: {
    showUrl: "",
    canUse: true,
  },
  onLoad({platform}) {
    let app = getApp()
    app.setShareChannel(platform)
    // iPhone15上市页
    this.data.showUrl = `https://www.ddzuji.cn/topic/alipay/h5/iPhone15/index.html?id=1` 
   
  },
  onMessage(e) {
    // const {  datail: { action }} = e
    e.detail.action && my.showSharePanel()
  },
  onShareAppMessage() {
    return {
      title: "苹果新品首发抢租x叮咚租机", // 标题
      desc: "邀好友0元抢租iPhone15", // 描述
      path: "/page/rent/h5/iPhone15UpperMarket/iPhone15UpperMarket?platform=miniProgram" // 分享的小程序页面
    }
  }
})
